.class Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;
.super Lcom/burstly/lib/currency/request/LinkUserCallback;
.source "RequestLinkAccountRunnable.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/lib/currency/request/LinkUserCallback",
        "<",
        "Lcom/burstly/lib/currency/request/AccountInfoResponse;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;


# direct methods
.method constructor <init>(Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;Lcom/burstly/lib/currency/UserAccount;Lcom/burstly/lib/currency/AccountInfo;)V
    .locals 0
    .parameter
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 111
    iput-object p1, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    invoke-direct {p0, p2, p3}, Lcom/burstly/lib/currency/request/LinkUserCallback;-><init>(Lcom/burstly/lib/currency/UserAccount;Lcom/burstly/lib/currency/AccountInfo;)V

    return-void
.end method


# virtual methods
.method public onFailInBackground(Lcom/burstly/lib/currency/request/AccountInfoResponse;)V
    .locals 6
    .parameter "processResult"

    .prologue
    .line 115
    iget-object v2, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->mDelayTime:Ljava/util/concurrent/atomic/AtomicLong;

    invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicLong;->get()J

    move-result-wide v0

    .line 117
    .local v0, delay:J
    iget-object v2, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    iget-object v2, v2, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->mUIHandler:Landroid/os/Handler;

    iget-object v3, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    const-wide/16 v4, 0x3e8

    mul-long/2addr v4, v0

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 118
    iget-object v2, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->mDelayTime:Ljava/util/concurrent/atomic/AtomicLong;

    const-wide/16 v3, 0x2

    mul-long/2addr v3, v0

    invoke-virtual {v2, v3, v4}, Ljava/util/concurrent/atomic/AtomicLong;->set(J)V

    .line 119
    return-void
.end method

.method public bridge synthetic onFailInBackground(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 111
    check-cast p1, Lcom/burstly/lib/currency/request/AccountInfoResponse;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->onFailInBackground(Lcom/burstly/lib/currency/request/AccountInfoResponse;)V

    return-void
.end method

.method public onSuccessInBackground(Lcom/burstly/lib/currency/request/AccountInfoResponse;)V
    .locals 8
    .parameter "processResult"

    .prologue
    const/4 v5, 0x1

    .line 123
    invoke-virtual {p1}, Lcom/burstly/lib/currency/request/AccountInfoResponse;->getStatusCode()Ljava/lang/String;

    move-result-object v1

    .line 124
    .local v1, statusCode:Ljava/lang/String;
    const-string v2, "0"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 125
    invoke-virtual {p1}, Lcom/burstly/lib/currency/request/AccountInfoResponse;->getAccounts()[Lcom/burstly/lib/currency/request/AccountInfoResponse$AccountBean;

    move-result-object v0

    .line 126
    .local v0, accounts:[Lcom/burstly/lib/currency/request/AccountInfoResponse$AccountBean;
    if-eqz v0, :cond_0

    array-length v2, v0

    if-nez v2, :cond_1

    .line 127
    :cond_0
    iget-object v2, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    iput-boolean v5, v2, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->mTryInactiveAccounts:Z

    .line 128
    invoke-virtual {p0, p1}, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->onFailInBackground(Lcom/burstly/lib/currency/request/AccountInfoResponse;)V

    .line 137
    .end local v0           #accounts:[Lcom/burstly/lib/currency/request/AccountInfoResponse$AccountBean;
    :goto_0
    return-void

    .line 130
    .restart local v0       #accounts:[Lcom/burstly/lib/currency/request/AccountInfoResponse$AccountBean;
    :cond_1
    invoke-super {p0, p1}, Lcom/burstly/lib/currency/request/LinkUserCallback;->onSuccessInBackground(Ljava/lang/Object;)V

    goto :goto_0

    .line 132
    .end local v0           #accounts:[Lcom/burstly/lib/currency/request/AccountInfoResponse$AccountBean;
    :cond_2
    const-string v2, "2"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_3

    .line 133
    invoke-virtual {p0, p1}, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->onFailInBackground(Lcom/burstly/lib/currency/request/AccountInfoResponse;)V

    goto :goto_0

    .line 135
    :cond_3
    sget-object v2, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v3, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->TAG:Ljava/lang/String;

    const-string v4, "LinkAccountsRequest account not found on server : {0}"

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    iget-object v7, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    iget-object v7, v7, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->mNewAccount:Lcom/burstly/lib/currency/AccountInfo;

    aput-object v7, v5, v6

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public bridge synthetic onSuccessInBackground(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 111
    check-cast p1, Lcom/burstly/lib/currency/request/AccountInfoResponse;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$2;->onSuccessInBackground(Lcom/burstly/lib/currency/request/AccountInfoResponse;)V

    return-void
.end method
